package org.yray.yaml;

import cn.hutool.core.io.FileUtil;
import org.yaml.snakeyaml.Yaml;
import org.yray.yaml.utils.FileUtils;
import org.yray.yaml.utils.YamlUtils;

import java.io.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class YamlMain {

    public static void main(String[] args) throws IOException {

        List<PodObj> list=new ArrayList<>();
        list.add(new PodObj("fsc-face-openapi",8551));
        list.add(new PodObj("fsc-face-manage",8711));
        list.add(new PodObj("fsc-provider-manage",8712));
        list.add(new PodObj("fsc-gateway",8015));
        list.add(new PodObj("fsc-face-console",8502));
        list.add(new PodObj("fsc-provider-console",8082));
        list.add(new PodObj("fsc-provider-imc",8722));
        list.add(new PodObj("fsc-face-imc",8721));
        list.add(new PodObj("fsc-auth",8016));
        list.add(new PodObj("fsc-provider-uid",8603));
        list.add(new PodObj("fsc-node",7091));
        list.add(new PodObj("fsc-freeswitch",5060));
        list.forEach((podObj)->{
            YamlUtils.createPod(podObj);
        });



    }
}
